/**
 * 服务端API请求地址
 * Created by zlp on 2017-12-25.
 */
//生产
//const base_url = "https://forca.yjlbld.com/";
//cconst enjoylove_url="https://forca.yjlbld.com/admin/";
//测试
const base_url = "http://119.254.166.145/";
const enjoylove_url="http://119.254.166.145/admin/";

const version = "admin/v1/";

/***************怡家乐接口  (start)***************/
// const enjoylove_url="http://172.5.1.139:8080/admin/";


//const enjoylove_url="https://47.97.199.121/";
/***************怡家乐接口  (end)***************/

module.exports = {
    //请求方法
    request_types: {
        GET: 'get',
        POST: 'POST',
        PUT: 'PUT',
        DELETE: 'DELETE'
    },
    login:{
        login:  base_url+ "login",
        logout:  base_url+ "logout",
        setting:  base_url+version+ "setting"
    },
    auth:{
        role:base_url+version+ "role",
        user:base_url+version+ "user",
        resource:base_url+version+ "resource",
        online:base_url+version+ "online",
        parameter:base_url+version+ "parameter",
        operation:base_url+version+ "log/operation"

    },
    enjoylove:{
        instructor:enjoylove_url+"instructor",
        customer:enjoylove_url+"customer",
        product:enjoylove_url+"product",
        category:enjoylove_url+"category",
        order:enjoylove_url+"order",
        area:enjoylove_url+"area/areas"
    }
}

